<table>
  <tr>
    <td width="50px"></td>
    <td class="witness-id a" width="380px">
       <a class="witness" href="/display/witness/{{a.witness.index}}">{{a.witness.signature}} {{a.witness.folia}}</a>
       <input type="hidden" id="hidden-witness-id-a" value="{{a.witness.index}}.{{a.index}}">
    </td>
    <td class="witness-id b" width="380px">
       <a class="witness" href="/display/witness/{{b.witness.index}}">{{b.witness.signature}} {{b.witness.folia}}</a>
       <input type="hidden" id="hidden-witness-id-b" value="{{b.witness.index}}.{{b.index}}">
    <td>
  </tr>
  <tr>
    <td></td>
    <td>
      {% for i in a.witness.prayers %}
        <a 
          {% ifequal i.index a.index %} class="selected" {% endifequal %} 
          href="/compare/{{i.witness.index}}.{{i.index}}/{{b.witness.index}}.{{b.index}}"> {{ i.type }}</a>
      {% endfor %}
    </td>
    <td>
      {% for i in b.witness.prayers %}
        <a
          {% ifequal i.index b.index %} class="selected" {% endifequal %} 
          href="/compare/{{a.witness.index}}.{{a.index}}/{{i.witness.index}}.{{i.index}}"> {{ i.type }}</a>
      {% endfor %}
    </tr>
  </tr>
  {% for t in diffs %}
  <tr>
    <td>{{ t.0 }}</td>
    <td>{{ t.1 }}</td><td>{{ t.2 }}</td><td>{{ t.3 }}</td>
  </tr>
  {% endfor %}
</table>
